import typescript from '@rollup/plugin-typescript';
// import {pkg} from './package.json'

export default {
    input: "./src/index.ts",
    output: [
        // 输出两组规范
        // 1. cjs -> commonjs 规范
        // 2. esm
        {
            format: 'cjs',
            // file: pkg.main
            file: 'lib/guide-coco-mini-vue.cjs.js'
        },
        {
            format: 'es',
            // file: pkg.module
            file: 'lib/guide-coco-mini-vue.esm.js'
        }
    ],
    plugins: [
        typescript()
    ]

}